package com.example.book_system.model;

import lombok.Data;

@Data
public class PageRequest {
    /**
     * 当前页
     */
    private Integer currentPage = 1;
    /**
     * 一页显示多少条
     */
    private Integer pageSize = 10;

    private Integer offset;

    public void setOffset() {
        offset = (currentPage - 1) * pageSize;
    }

}
